import { createTypes } from './utils'
import { PAYLOAD } from '../middleware/api';

export const EXAMPLE_GET_INFO = createTypes('example_get_info')

export function getExample() {
    return dispach => dispach(
        {
            [PAYLOAD]: {
                types: EXAMPLE_GET_INFO,
                endpoint: `/api/example`,
                options: {
                    method: 'GET'
                }
            }
        }
    )
}

